import { memo, Suspense } from 'react';
import type { FC, PropsWithChildren } from 'react';
import { Spin } from 'antd';

const RxLazy: FC<PropsWithChildren<{}>> = ({ children }) => {
  return <Suspense fallback={<div className={"flex justify-center items-center h-screen"}><Spin size="large" /></div>}>{children}</Suspense>;
};

export default memo(RxLazy);
